<template>
	<button @click="addListHandle">添加数据</button>
	<ul>
		<li v-for="(item,index) of names" :key="index">{{item}}</li>
	</ul>
</template>
<script>
export default {
	data(){
		return {
			names:["aaa","bbb","ccc"]
		}
	},
	methods: {
		addListHandle() {
			//引起UI自动更新
			this.names.push("ddd")
			// this.names=this.names.concat(["ddd"])
		}
	}
}
</script>